import { createWebHistory, createRouter } from 'vue-router'

import Goods from "../components/Goods.vue";
import Detail from "../components/Detail.vue";
import Login from "../components/Login.vue";
import Cart from "../components/Cart.vue";

const routes = [
    { path: '/', component: Goods },
    { path: '/detail', component: Detail },
    { path: '/login', component: Login },
    { path: '/cart', component: Cart },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router